package fr.bludwarf.skywarrior.global;

import org.apache.commons.configuration.ConfigurationException;

import fr.bludwarf.commons.PropertiesConfiguration;

public class Properties extends PropertiesConfiguration
{

	private static final String FILE = "config/conf.properties";
	/** instance */
	private static Properties _instance = null;

	private Properties() throws ConfigurationException
	{
		super(FILE);
	}

	/**
	 * @return l'instance de Properties
	 * @throws ConfigurationException 
	 */
	public static final synchronized Properties getInstance() throws ConfigurationException
	{
		if (_instance == null)
		{
			_instance = new Properties();
		}
		return _instance;
	}

	@Override
	protected String getUserPropertiesFolder()
	{
		return "Autres/presets/Skywar";
	}

}
